package com.base.service.impl;

import com.base.mapper.voipmapper.ReplacementUserinfoMapper;
import com.base.po.replacement.ReplacementUserinfo;
import com.base.po.replacement.ReplacementUserinfoExample;
import com.base.service.ReplacementUserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("replacementUserinfoService")
public class ReplacementUserinfoServiceImpl implements ReplacementUserinfoService {
	
	@Autowired
	private ReplacementUserinfoMapper replacementUserinfoMapper;


	@Override
	public int countByExample(ReplacementUserinfoExample example) {
		return replacementUserinfoMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ReplacementUserinfoExample example) {
		return replacementUserinfoMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return replacementUserinfoMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ReplacementUserinfo record) {
		return replacementUserinfoMapper.insert(record);
	}

	@Override
	public int insertSelective(ReplacementUserinfo record) {
		return replacementUserinfoMapper.insertSelective(record);
	}

	@Override
	public List<ReplacementUserinfo> selectByExample(ReplacementUserinfoExample example) {
		return replacementUserinfoMapper.selectByExample(example);
	}

//	@Override
//	public List<ReplacementUserinfo> selectCardInfo(String userid, String cardno) {
//		return replacementUserinfoMapper.selectCardInfo(userid, cardno);
//	}

	@Override
	public ReplacementUserinfo selectByPrimaryKey(Integer id) {
		return replacementUserinfoMapper.selectByPrimaryKey(id);
	}

	@Override
	public ReplacementUserinfo selectByUserID(String userid) {
		return replacementUserinfoMapper.selectByUserID(userid);
	}

//	@Override
//	public ReplacementUserinfo selectByConfigNo(String configno) {
//		return replacementUserinfoMapper.selectByConfigNo(configno);
//	}

	@Override
	public int updateByExampleSelective(ReplacementUserinfo record, ReplacementUserinfoExample example) {
		return replacementUserinfoMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(ReplacementUserinfo record, ReplacementUserinfoExample example) {
		return replacementUserinfoMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(ReplacementUserinfo record) {
		return replacementUserinfoMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ReplacementUserinfo record) {
		return replacementUserinfoMapper.updateByPrimaryKey(record);
	}
}
